export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}
// 代表已有的医院数据的 ts 类型
export interface hospital {
    id: string,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: {
        hostypeString: string,
        fullAddress: string
    },
    hoscode: string,
    hosname: string,
    hostype: string,
    provinceCode: string,
    cityCode: string,
    districtCode: string,
    address: string,
    logoData: string,
    intro: string,
    route: string,
    status: number,
    bookingRule: {
        cycle: string,
        releaseTime: string,
        stopTime: string,
        quitDay: string,
        quitTime: string,
        rule: string[]
    }
}
// 存储全部已有医院的数据类型
export type Content = hospital[]
// 获取已有医院接口返回的数据 ts 类型
export interface HospitalResponseData extends ResponseData {
    data: {
        content: Content,
        "pageable": {
            "sort": {
                "sorted": boolean,
                "unsorted": boolean,
                "empty": boolean
            },
            "pageNumber": number,
            "pageSize": number,
            "offset": number,
            "paged": boolean,
            "unpaged": boolean
        },
        "last": boolean,
        "totalPages": boolean,
        "totalElements": number,
        "first": boolean,
        "sort": {
            "sorted": boolean,
            "unsorted": boolean,
            "empty": boolean
        },
        "numberOfElements": number,
        "size": number,
        "number": number,
        "empty": boolean
    }
}


// 代表医院的等级或者地区数据 ts 类型
export interface HospitalLevelAndRegion {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param":{}
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": string
    "hasChildren": boolean
}

export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]
// 获取等级地区数据
export interface HospitalLevelAndRegionResponseData extends ResponseData {
    data: HospitalLevelAndRegionArr
}

// 代表医院的信息数据 ts 类型
export interface HospitalInfo extends ResponseData {
    data: Content
}
